<DIV id="fbtopbar" class="slim">
	<DIV id="left_bar">	

		<span class="lfloat">
			<a href='main.php?page=home'>
				<img src="img/logo.jpg" style="height: 36px" alt="Home page"> 
			</a>
		</span>
			<a class = 'fbtab' href='main.php?page=friendlist'>Friends</a>

		<span style="WIDTH: 40px; margin-bottom: 10px;" class="html7magic">
			<a href='main.php?page=friendrequest'>
				<img src="img/friendrequest.jpg" alt="Friend Request"> 
			</a>
				
			<?php

			$dbin = new DB();
			$request = "select count(*) as c from  friendship as f where f.id1 = \"".$_SESSION["info"]["id_user"]."\" and f.accept2 = 1 and f.accept1=0";
			$dbin->query($request);
			while($dbin->fetch_assoc()){
				if ($dbin->row['c'] > 0){
					echo "+".$dbin->row['c'];
				}
			}
			?>
		</span>
	</DIV>
	
	<div  id="right_bar" >
		<div class="lfloat">
			<form action="main.php" method="post" style="margin: 3px 0px 0px 4px; position: relative;">
				<input type="text" name="friendname" value="Look for a friend" onfocus="if (this.value=='Look for a friend') this.value=''" 
					onblur="if (this.value=='') this.value='Look for a friend'"
					style="color: #666666; width: 350px; "/>
				<input class='fbbutton' type="submit" name="searchfriend" value="Browse"/>
			</form>
		</div>
		<div class="rfloat">
			<a class = 'fbtab' href='main.php?page=profil'>Profile</a>
			<a class = 'fbtab' href='main.php?page=home'>Home</a>
			<a class = 'fbtab' href='main.php?p=0'>Logout</a>
		</div>
	</div>
</DIV>
